package com.caval.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Game {
    private int game_id;

    private String game_name;

    private String game_pic;

    //发布时间
    private String release_time;

    //售价
    private double price;

    //发售时间
    private int sales_volume;

    public int getGame_id() {
        return game_id;
    }

    public void setGame_id(int game_id) {
        this.game_id = game_id;
    }

    public String getGame_name() {
        return game_name;
    }

    public void setGame_name(String game_name) {
        this.game_name = game_name;
    }

    public String getGame_pic() {
        return game_pic;
    }

    public void setGame_pic(String game_pic) {
        this.game_pic = game_pic;
    }

    public String getRelease_time() {
        return release_time;
    }

    public void setRelease_time(Date release_time) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        this.release_time = sdf.format(release_time);
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSales_volume() {
        return sales_volume;
    }

    public void setSales_volume(int sales_volume) {
        this.sales_volume = sales_volume;
    }
}
